package alon.xmnn.bobing;

import java.util.ArrayList;
import java.util.List;

public class NnAccount {
	private String user;
	private String pass;
	private int willCore=0;
	private int actualCore=0;
	private int times=0;
	private List<String> rooms=new ArrayList<String>();
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public List<String> getRooms() {
		return rooms;
	}
	public void setRooms(List<String> rooms) {
		this.rooms = rooms;
	}
	public int getWillCore() {
		return willCore;
	}
	public void setWillCore(int willCore) {
		this.willCore = willCore;
	}
	public int getActualCore() {
		return actualCore;
	}
	public void setActualCore(int actualCore) {
		this.actualCore = actualCore;
	}
	public int getTimes() {
		return times;
	}
	public void setTimes(int times) {
		this.times = times;
	}
	public int hashCode() {
		return user.hashCode();
	}
	public boolean equals(Object obj) {
		if(!(obj instanceof NnAccount)){
			return false;
		}
		return this.user.equals(((NnAccount)obj).getUser());
	}
}
